package pcjavanet.mobilesell.persistence;

import java.util.List;
import org.apache.ibatis.annotations.Param;
import pcjavanet.mobilesell.model.Catalog;
import pcjavanet.mobilesell.model.CatalogExample;
import pcjavanet.mobilesell.model.PageBean;

public interface CatalogMapper {
    int countByExample(CatalogExample example);

    int deleteByExample(CatalogExample example);

    int deleteByPrimaryKey(Integer dbid);

    int insert(Catalog record);

    int insertSelective(Catalog record);

    List<Catalog> selectByExample(CatalogExample example);

    Catalog selectByPrimaryKey(Integer dbid);

    int updateByExampleSelective(@Param("record") Catalog record, @Param("example") CatalogExample example);

    int updateByExample(@Param("record") Catalog record, @Param("example") CatalogExample example);

    int updateByPrimaryKeySelective(Catalog record);

    int updateByPrimaryKey(Catalog record);

    List<Catalog> getOnePageBeans(@Param("example") CatalogExample example, @Param("pageBean") PageBean pageBean);

    int getTotalRecords(@Param("example") CatalogExample example, @Param("pageBean") PageBean pageBean);

    List<Catalog> selectByExamplePage(@Param("example") CatalogExample example, @Param("pageBean") PageBean pageBean);
}